from pydantic import BaseModel
from typing import Dict

class CompilationStats(BaseModel):
    """编译统计模型"""
    total: int
    successful: int
    failed: int
    total_files: int

class PlatformDistribution(BaseModel):
    """平台分布模型"""
    distribution: Dict[str, int]

class StatsResponse(BaseModel):
    """统计响应模型"""
    compilation_stats: CompilationStats
    platform_distribution: PlatformDistribution
